package com.pty.demo.creational;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author pengty
 * @date 2020/3/11
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class PrototypePattern implements Cloneable {

    private String name;

    private String skill;

    @Override
    public Object clone() throws CloneNotSupportedException {
        System.out.println("Clone Prototype");
        return super.clone();
    }
}
                                                  